package com.open.pokergames.conn.bean;

/**
 * 编写 Liang Y.T.
 * 时间 2021/09/15 11:00
 */
public class WsConstant {

    public static class ROOM_STATE {
        public static final int STATE_ROOM_READY = 0; // 准备中
        public static final int STATE_ROOM_PLAYING = 1; // 游戏中
        public static final int STATE_ROOM_RELEASE = 3; // 已解散
    }

    public static class ROOM_SEAT {
        public static final String SEAT_ROOM_A = "A"; // A
        public static final String SEAT_ROOM_B = "B"; //
        public static final String SEAT_ROOM_C = "C"; //
        public static final String SEAT_ROOM_D = "D"; //
        public static final String SEAT_ROOM_E = "E"; //
        public static final String SEAT_ROOM_F = "F"; //
        public static final String SEAT_ROOM_G = "G"; //
        public static final String SEAT_ROOM_H = "H"; //
        public static final String SEAT_ROOM_I = "I"; //
    }

    public static class PLAYER_RUN { // 0.游客 1.坐下 2.游戏中 3.退出 9.空用户
        public static final int visitors = 0;
        public static final int preparer = 1;
        public static final int player = 2;
        public static final int outer = 3;
        public static final int empty = 9;
    }

    public static class PLAYER_OPT { // 上次操作状态：初态、跟注、弃牌、加注、看牌、ALLIN
        public static final int STATE_INIT = -1;
        public static final int STATE_FLOW = 0;
        public static final int STATE_ADD = 1;
        public static final int STATE_CANCEL = 2;
        public static final int STATE_SEE_CARD = 3;
        public static final int STATE_ALLIN = 8;
    }

    public static class PLAYER_PLAY { // 用户当前状态 0.正在说话 1.等待中
        // 正在说话
        public static final int SPEAKING = 0;
        // 等待中
        public static final int WAITING = 1;
    }


    public static class MsgType {
        public static final int TYPE_BROADCAST = 0;
        public static final int TYPE_PERSON = 1;
        public static final int TYPE_ROOM = 2;
        public static final int TYPE_GROUP = 3;
        public static final int TYPE_CLUB = 5;
    }

    public static class TYPE_PM {// 个人消息
        // 进入房间
        public static final int CONN_OPEN = 1;
        public static final int TYPE_ROOM_ENTER_BACK = 2;
    }

    public static class TYPE_RM { // 房间消息
        // 异常返回
        public static final int TYPE_ROOM_ALL_ERROR_BACK = 0;
        // 进入房间
        public static final int TYPE_ROOM_ENTER = 1;
        public static final int TYPE_ROOM_ENTER_BACK = 2;
        // 退出房间
        public static final int TYPE_ROOM_EXIT = 3;
        public static final int TYPE_ROOM_EXIT_BACK = 4;
        // 释放房间
        public static final int TYPE_ROOM_RELEASE = 5;
        public static final int TYPE_ROOM_RELEASE_BACK = 6;

        // 开始准备
        public static final int TYPE_ROOM_READY = 25;
        public static final int TYPE_ROOM_READY_BACK = 26;

        // 坐下
        public static final int TYPE_ROOM_SIT_DOWN = 7;
        public static final int TYPE_ROOM_SIT_DOWN_BACK = 8;
        // 开局
        public static final int TYPE_ROOM_START = 9;
        public static final int TYPE_ROOM_START_BACK = 10;

        // 弃牌
        public static final int TYPE_ROOM_PLAYING_CANCEL = 11;
        public static final int TYPE_ROOM_PLAYING_CANCEL_BACK = 12;
        // 加注
        public static final int TYPE_ROOM_PLAYING_ADD = 13;
        public static final int TYPE_ROOM_PLAYING_ADD_BACK = 14;

        // 跟注
        public static final int TYPE_ROOM_PLAYING_FLOW = 15;
        public static final int TYPE_ROOM_PLAYING_FLOW_BACK = 16;
        // 看牌
        public static final int TYPE_ROOM_PLAYING_SEE_CARD = 17;
        public static final int TYPE_ROOM_PLAYING_SEE_CARD_BACK = 18;

//    //
//    public static final int TYPE_ROOM_PLAYING = 2;
//    public static final int TYPE_ROOM_PLAYING_BACK = 20;

        // 显示公共牌
        public static final int TYPE_ROOM_SEND_PUB_POKER = 19;
        public static final int TYPE_ROOM_SEND_PUB_POKER_BACK = 20;

        // 发一张
        public static final int TYPE_ROOM_SEND_ONCE_POKER = 21;
        public static final int TYPE_ROOM_SEND_ONCE_POKER_BACK = 22;

        // 比牌
        public static final int TYPE_ROOM_POKER_COMPARE = 23;
        public static final int TYPE_ROOM_POKER_COMPARE_BACK = 24;

        // 离桌
        public static final int TYPE_ROOM_POKER_STOP_GAME = 25;
        public static final int TYPE_ROOM_POKER_STOP_GAME_BACK = 26;

        // 站起围观
        public static final int TYPE_ROOM_POKER_STAND_SEE = 27;
        public static final int TYPE_ROOM_POKER_STAND_SEE_BACK = 28;
    }
}
